package com.aizhixin.lab.docker.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;
import java.util.UUID;

@Entity(name = "chapter_image")
@Data
public class ChapterImages {
    @Id
    private String id= UUID.randomUUID().toString();
    @Column(name = "chapter_id")
    private Long chapterId;
    @Column(name = "course_id")
    private String courseId;
    @Column(name = "user_id")
    private Long userId;
    @Column(name = "image_name")
    private String imageName;
    @Column(name = "num")
    private Integer num=1;
    @Column(name = "version")
    private Integer version;
    @Column(name = "create_date")
    private Date createDate;
    @Column(name = "expire")
    private Long expire=5400L;
    @Column(name = "spec")
    private Integer spec=2;
    @Column(name = "over_sold")
    private Integer overSold;

}
